package ooday02;

public class Dog extends Animal {
    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    public void lookHome() {
        System.out.println(this.getColor() + "色的" + this.getAge() + "岁的狗狗"
                + this.getName() + "正在看家");
    }

    @Override
    public void eat() {
        System.out.println(this.getColor() + "色的" + this.getAge() + "岁的狗狗"
                + this.getName() + "正在吃骨头");
    }
}
